/**
 * 
 */
package com.zuul.leku.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 功能描述：测试接口
 *
 * @author shaorl
 * @created 2019年6月24日 下午3:53:50
 * @version 1.0.0
 */

@RestController
@RequestMapping("/test")
public class TestController {


	@RequestMapping(value = "/getuser")
	public String getUserInfo(HttpServletRequest request, HttpServletResponse response) {
		HttpSession session = request.getSession(true);
		session.setAttribute("SessionId", "你的另一个SessionId是"+request.getSession().getId());
		return String.valueOf(request.getSession(true).getAttribute("SessionId"));
	}
}

